<?php
class InvalidConnectionException extends Exception{
	/**
	 * The connection name
	 * @var string
	 */
	private $connectionName;
	
	/**
	 * Basic constructor
	 * @param string $connectionName The connection name
	 * @return void
	 */
	public function __construct($connectionName){
		// create the exception
		parent::__construct("The connection '" . $connectionName. "' is invalid!");
		
		// set the connection name
		$this->connectionName = $connectionName;
	}
	
	/**
	 * Return the connection name
	 * @return string The connection name
	 */
	public function getConnectionName(){
		return $this->connectionName;
	}
}